/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.factory.domain;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Vinnu
 */
public class FactoryItems implements Serializable {

    private Long factoryItemId;
    private String factoryItemName;
    private double factoryItemCost;
    private int factoryItemsQuantity;
    private double factoryItemsCost;
    private Date date;

    public FactoryItems() {
    }

    public FactoryItems(Long factoryItemId) {
        this.factoryItemId = factoryItemId;
    }

    public FactoryItems(Long factoryItemId, String factoryItemName, double factoryItemCost, int factoryItemsQuantity, double factoryItemsCost, Date date) {
        this.factoryItemId = factoryItemId;
        this.factoryItemName = factoryItemName;
        this.factoryItemCost = factoryItemCost;
        this.factoryItemsQuantity = factoryItemsQuantity;
        this.factoryItemsCost = factoryItemsCost;
        this.date = date;
    }

    public Long getFactoryItemId() {
        return factoryItemId;
    }

    public void setFactoryItemId(Long factoryItemId) {
        this.factoryItemId = factoryItemId;
    }

    public String getFactoryItemName() {
        return factoryItemName;
    }

    public void setFactoryItemName(String factoryItemName) {
        this.factoryItemName = factoryItemName;
    }

    public double getFactoryItemCost() {
        return factoryItemCost;
    }

    public void setFactoryItemCost(double factoryItemCost) {
        this.factoryItemCost = factoryItemCost;
    }

    public long getFactoryItemsQuantity() {
        return factoryItemsQuantity;
    }

    public void setFactoryItemsQuantity(int factoryItemsQuantity) {
        this.factoryItemsQuantity = factoryItemsQuantity;
    }

    public double getFactoryItemsCost() {
        return factoryItemsCost;
    }

    public void setFactoryItemsCost(double factoryItemsCost) {
        this.factoryItemsCost = factoryItemsCost;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (factoryItemId != null ? factoryItemId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FactoryItems)) {
            return false;
        }
        FactoryItems other = (FactoryItems) object;
        if ((this.factoryItemId == null && other.factoryItemId != null) || (this.factoryItemId != null && !this.factoryItemId.equals(other.factoryItemId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.factory.domain.Factoryitems[ factoryItemId=" + factoryItemId + " ]";
    }
}
